package net.csdn.business.common.domain.request;

import lombok.Data;
import net.csdn.business.common.enums.ResourceEnum;
import net.csdn.business.common.enums.UserLikeEnum;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author likun
 * @date 2022/6/9 15:02
 */
@Data
public class UserLikeSaveReqDto implements Serializable {
    private String uid;
    /**
     * {@link net.csdn.business.common.enums.ResourceEnum.ObjectTypeEnum}
     */
    @NotBlank(message = "type 不能为空")
    private String objectType;

    @NotBlank(message = "id 不能为空")
    private String objectId;

    /**
     * {@link net.csdn.business.common.enums.UserLikeEnum.ActionEnum}
     */
    @NotNull(message = "action 不能为空")
    private Integer action;


    /**
     * 上下文环境
     */
    private ResourceEnum.ObjectTypeEnum objectTypeEnum;

    private UserLikeEnum.ActionEnum actionEnum;
}
